﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Quota.aspx.cs" Inherits="ReportMobile.v2.Quota" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>分公司/川渝区定额占比情况</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <link rel="Stylesheet" type="text/css" href="../css/bootstrap.min.css" />
    <link rel="Stylesheet" type="text/css" href="../css/style.css" />
    <script type="text/javascript" src="../js/jquery-1.11.3.min.js"></script>
    <script type="text/javascript" src="../js/bootstrap.min.js"></script>
</head>
<body class="">
<%
    for (int i = 0; i < dt.Rows.Count; i++) {
     %>
<div class="quota_div1">
    <p class="p1"><strong class="strong_area"><%=dt.Rows[i]["区域"]%></strong>欠款总额：</p>
    <h1><%=string.Format("{0:N}",dt.Rows[i]["欠款合计"])%></h1>
    <p>总额度占比：<%if (Convert.ToDouble(dt.Rows[i]["欠款合计"]) == 0 || Convert.ToDouble(dt.Rows[i]["总额度"]) == 0 ){
                            Response.Write("Null");
                    }else{
                        Response.Write(string.Format("{0:0.00%}", Convert.ToDouble(dt.Rows[i]["欠款合计"]) / Convert.ToDouble(dt.Rows[i]["总额度"]))); 
                    }
        %>（<%=dt.Rows[i]["总额度"]%>）</p>
    <%if (dt.Rows[i]["区域"].ToString() == "北京") {%>
    <p style="font-size:14px;"><strong>金星鸭业</strong>欠款余额：<%=string.Format("{0:N}",Convert.ToDouble(dtJXYE.Rows[0][1])) %></p>
    <%  }%>
</div>

<div class="quota_div2_left">
    <p>占额度：<%if (Convert.ToDouble(dt.Rows[i]["借款"]) == 0 || Convert.ToDouble(dt.Rows[i]["借款定额"]) == 0) {
                            Response.Write("Null");
                    }else{
                        Response.Write(string.Format("{0:0.00%}", Convert.ToDouble(dt.Rows[i]["借款"]) / Convert.ToDouble(dt.Rows[i]["借款定额"]))); 
                    }
        %></p>
    <h3><%=string.Format("{0:N}", dt.Rows[i]["借款"])%></h3>
    <p>借款定额：<%=dt.Rows[i]["借款定额"]%></p>
</div>
<div class="quota_div2_right">
    <p>占额度：<%if (Convert.ToDouble(dt.Rows[i]["贷款"]) == 0 || Convert.ToDouble(dt.Rows[i]["贷款定额"]) == 0) {
                            Response.Write("Null");
                    }else{
                        Response.Write(string.Format("{0:0.00%}", Convert.ToDouble(dt.Rows[i]["贷款"]) / Convert.ToDouble(dt.Rows[i]["贷款定额"]))); 
                    }
        %></p>
    <h3><%=string.Format("{0:N}", dt.Rows[i]["贷款"])%></h3>
    <p>贷款定额：<%=dt.Rows[i]["贷款定额"]%></p>
</div>
<div class="clearfix"></div>
<%
    }   //for循环结束
         %>
<%
    for (int i = 0; i < dtKMHB.Rows.Count; i++) {
        
     %>
        <div class="quota_div1">
            <p class="p1"><strong class="strong_area"><%=dtKMHB.Rows[i]["公司简称"].ToString()%></strong>欠款总额：</p>
            <h1><%=string.Format("{0:N}", Convert.ToDouble(dtKMHB.Rows[i]["欠款余额"]))%></h1>

            <div class="quota_div2_left">
                <p>其中鱼料借款：</p>
                <h3><%=string.Format("{0:N}", dtKMHB.Rows[i]["鱼料借款"])%></h3>
            </div>
            <div class="quota_div2_right">
                <p>其中鱼料贷款：</p>
                <h3><%=string.Format("{0:N}", dtKMHB.Rows[i]["鱼料贷款"])%></h3>
            </div>
            <div class="clearfix"></div>
            <div class="quota_div2_left">
                <p>畜禽料借款：</p>
                <h3><%=string.Format("{0:N}", dtKMHB.Rows[i]["畜禽料借款"])%></h3>
                <p>定额占比：<%
                            if (Convert.ToDouble(dtKMHB.Rows[i]["畜禽料借款"]) == 0 || Convert.ToDouble(dtKMHB.Rows[i]["借款定额"]) == 0) {
                                Response.Write("Null");
                            } else {
                                Response.Write(string.Format("{0:0.00%}", Convert.ToDouble(dtKMHB.Rows[i]["畜禽料借款"]) / Convert.ToDouble(dtKMHB.Rows[i]["借款定额"])));
                            } %>（<%=string.Format("{0:N}", Convert.ToDouble(dtKMHB.Rows[i]["借款定额"]))%>）</p>
            </div>
            <div class="quota_div2_right">
                <p>畜禽料贷款：</p>
                <h3><%=string.Format("{0:N}", dtKMHB.Rows[i]["畜禽料贷款"])%></h3>
                <p>定额占比：<%
                            if (Convert.ToDouble(dtKMHB.Rows[i]["畜禽料贷款"]) == 0 || Convert.ToDouble(dtKMHB.Rows[i]["贷款定额"]) == 0) {
                                Response.Write("Null");
                            } else {
                                Response.Write(string.Format("{0:0.00%}", Convert.ToDouble(dtKMHB.Rows[i]["畜禽料贷款"]) / Convert.ToDouble(dtKMHB.Rows[i]["贷款定额"])));
                            } %>（<%=string.Format("{0:N}", Convert.ToDouble(dtKMHB.Rows[i]["贷款定额"]))%>）</p>
            </div>
            <div class="clearfix"></div>
        </div>

<%
    }
    %>

    <%=cm.DisplayMenuOfBottom() %>
</body>
</html>
